package com.markedquilt.comment.service;

import com.markedquilt.comment.coomon.BussinessException;
import com.markedquilt.comment.model.UserModel;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

/**
 * @author ZhangKe
 * @Description
 * @date 2020/4/18 16:48.
 */
public interface UserService {

    public UserModel getUser(Integer id);

    public UserModel register(UserModel userModel) throws BussinessException, UnsupportedEncodingException, NoSuchAlgorithmException;

    public UserModel login(String telphone, String password) throws UnsupportedEncodingException, NoSuchAlgorithmException, BussinessException;

    Integer countAllUser();
}
